﻿<%@ Page Title="" Language="C#" MasterPageFile="~/App_MasterPages/DefaultMasterPage.master"
    AutoEventWireup="true" CodeFile="TestList.aspx.cs" Inherits="TestList" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<asp:Content ID="HeaderContent" ContentPlaceHolderID="HeaderContentPlaceHolder" runat="Server">
</asp:Content>
<asp:Content ID="MainContent" ContentPlaceHolderID="MainContentPlaceHolder" runat="Server">
    <div id="templatemo_middle_subpage" dir="rtl">
        <h2 align="center">
            فهرست آزمایش ها</h2>
    </div>
    <div id="templatemo_main" dir="rtl">
        <div class="col_w900 col_w900_last">
            <div align="center">
                  <telerik:RadGrid ID="TestRadGrid" runat="server" CellSpacing="0" DataSourceID="TestEntityDataSource"
                        GridLines="None" AllowFilteringByColumn="True" Height="325px" ShowGroupPanel="True"
                        Width="710px" Skin="Windows7" AutoGenerateColumns="False"
                        Font-Names="Tahoma" AllowSorting="True">
                        <SortingSettings SortedAscToolTip="افزایشی" SortedDescToolTip="کاهشی" SortToolTip="برای مرتب سازی انتخاب کنید" />
                        <ClientSettings AllowDragToGroup="True">
                            <Scrolling AllowScroll="True" UseStaticHeaders="True" />
                        </ClientSettings>
                        <MasterTableView DataSourceID="TestEntityDataSource" Dir="RTL" DataKeyNames="CategoryItemID">
                            <NoRecordsTemplate>
                                آزمایشی وجود ندارد
                            </NoRecordsTemplate>
                            <CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>
                            <RowIndicatorColumn Visible="True" FilterControlAltText="Filter RowIndicator column">
                                <HeaderStyle Width="20px"></HeaderStyle>
                            </RowIndicatorColumn>
                            <ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column">
                                <HeaderStyle Width="20px"></HeaderStyle>
                            </ExpandCollapseColumn>
                            <GroupByExpressions>
                                <telerik:GridGroupByExpression>
                                    <GroupByFields>
                                        <telerik:GridGroupByField FieldAlias="CategoryTitle" FieldName="CategoryTitle" FormatString=""
                                            HeaderText="گروه" />
                                    </GroupByFields>
                                </telerik:GridGroupByExpression>
                            </GroupByExpressions>
                            <Columns>
                                <telerik:GridBoundColumn DataField="CategoryTitle" FilterControlAltText="Filter CategoryTitle column"
                                    HeaderText="عنوان گروه" SortExpression="CategoryTitle" UniqueName="CategoryTitle">
                                    <ItemStyle Font-Italic="False" Font-Names="Tahoma" HorizontalAlign="Right" VerticalAlign="Middle"
                                        Width="200px" />
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="CategoryItemTitle" FilterControlAltText="Filter column column"
                                    HeaderText="عنوان آزمایش" UniqueName="CategoryItemTitle">
                                    <ItemStyle Font-Italic="False" Font-Names="Tahoma" HorizontalAlign="Right" VerticalAlign="Middle"
                                        Width="310px" />
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="Description" FilterControlAltText="Filter Description column"
                                    HeaderText="توضیحات" SortExpression="Description" UniqueName="Description">
                                    <ItemStyle Font-Italic="False" Font-Names="Tahoma" HorizontalAlign="Right" VerticalAlign="Middle"
                                        Width="200px" />
                                </telerik:GridBoundColumn>
                            </Columns>
                            <EditFormSettings>
                                <EditColumn FilterControlAltText="Filter EditCommandColumn column">
                                </EditColumn>
                            </EditFormSettings>
                        </MasterTableView>
                        <AlternatingItemStyle Font-Names="Tahoma" HorizontalAlign="Right" VerticalAlign="Middle" />
                        <GroupHeaderItemStyle Font-Names="Tahoma" HorizontalAlign="Center"
                            VerticalAlign="Middle" />
                        <GroupPanel Text="عنصر گروه بندی را به این جا اضافه کنید" Font-Names="Tahoma">
                        </GroupPanel>
                        <HeaderStyle Font-Names="Tahoma" HorizontalAlign="Center" VerticalAlign="Middle" />
                        <FilterItemStyle Font-Names="Tahoma" HorizontalAlign="Right" VerticalAlign="Middle" />
                        <ItemStyle Font-Names="Tahoma" />
                        <PagerStyle FirstPageToolTip="صفحه اول" HorizontalAlign="Center" LastPageToolTip="صفحه آخر"
                            NextPagesToolTip="صفحات بعدی" NextPageToolTip="صفحه بعدی" PageSizeLabelText="اندازه صفحه:"
                            PrevPagesToolTip="صفحات قبلی" PrevPageToolTip="صفحه قبلی" VerticalAlign="Middle" />
                        <FilterMenu EnableImageSprites="False" Font-Names="Tahoma">
                            <WebServiceSettings>
                                <ODataSettings InitialContainerName="">
                                </ODataSettings>
                            </WebServiceSettings>
                        </FilterMenu>
                        <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default">
                            <WebServiceSettings>
                                <ODataSettings InitialContainerName="">
                                </ODataSettings>
                            </WebServiceSettings>
                        </HeaderContextMenu>
                    </telerik:RadGrid>
            </div>
            <div class="cleaner">
            </div>
        </div>
        <div class="cleaner">
            <br />
        </div>
    </div>
  <asp:EntityDataSource ID="TestEntityDataSource" runat="server" ConnectionString="name=DefaultEntityConnection"
        DefaultContainerName="DefaultEntityConnection" CommandText="SELECT T2.CategoryTitle AS CategoryTitle, 
         T1.CategoryItemTitle AS CategoryItemTitle ,
         T1.CategoryItemID AS CategoryItemID , 
         T1.Description AS Description  
         FROM DefaultEntityConnection.CategoryItems AS T1
         INNER JOIN DefaultEntityConnection.Categories  AS T2 On T1.CategoryItemID = T2.CategoryID"
        EnableFlattening="False"
        AutoGenerateOrderByClause="true">
    </asp:EntityDataSource>
</asp:Content>
